package org.edu.modules.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;

@TableName("ve_addons_star_detail")
@ApiModel(value="ve_addons_star_detail对象", description="星级评价明细表")
public class VeAddonsStarDetail
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键ID，自增长")
    private Integer id;
    @ApiModelProperty("评价主体ID")
    private Integer starid;
    @ApiModelProperty("参与评价的用户ID")
    private Integer userid;
    @ApiModelProperty("参与评价的用户姓名")
    private String nickname;
    @ApiModelProperty("内容,程序上限制200个字")
    private String content;
    @ApiModelProperty("评价时间")
    private Integer addtime;
    @ApiModelProperty("分数")
    private BigDecimal score;
    @ApiModelProperty("IP地址")
    private String ip;
    @ApiModelProperty("是否匿名提交 0=否 1=是")
    private Integer ishide;
    @ApiModelProperty("状态（1启用，0已禁用）")
    private Integer status;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeAddonsStarDetail setUserid(Integer userid)
    {
        this.userid = userid;return this;
    }

    public VeAddonsStarDetail setStarid(Integer starid)
    {
        this.starid = starid;return this;
    }

    public VeAddonsStarDetail setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeAddonsStarDetail(id=" + getId() + ", starid=" + getStarid() + ", userid=" + getUserid() + ", nickname=" + getNickname() + ", content=" + getContent() + ", addtime=" + getAddtime() + ", score=" + getScore() + ", ip=" + getIp() + ", ishide=" + getIshide() + ", status=" + getStatus() + ", placeId=" + getPlaceId() + ")";
    }

    public VeAddonsStarDetail setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeAddonsStarDetail setStatus(Integer status)
    {
        this.status = status;return this;
    }

    public VeAddonsStarDetail setIshide(Integer ishide)
    {
        this.ishide = ishide;return this;
    }

    public VeAddonsStarDetail setIp(String ip)
    {
        this.ip = ip;return this;
    }

    public VeAddonsStarDetail setScore(BigDecimal score)
    {
        this.score = score;return this;
    }

    public VeAddonsStarDetail setAddtime(Integer addtime)
    {
        this.addtime = addtime;return this;
    }

    public VeAddonsStarDetail setContent(String content)
    {
        this.content = content;return this;
    }

    public VeAddonsStarDetail setNickname(String nickname)
    {
        this.nickname = nickname;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $starid = getStarid();result = result * 59 + ($starid == null ? 43 : $starid.hashCode());Object $userid = getUserid();result = result * 59 + ($userid == null ? 43 : $userid.hashCode());Object $addtime = getAddtime();result = result * 59 + ($addtime == null ? 43 : $addtime.hashCode());Object $ishide = getIshide();result = result * 59 + ($ishide == null ? 43 : $ishide.hashCode());Object $status = getStatus();result = result * 59 + ($status == null ? 43 : $status.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $nickname = getNickname();result = result * 59 + ($nickname == null ? 43 : $nickname.hashCode());Object $content = getContent();result = result * 59 + ($content == null ? 43 : $content.hashCode());Object $score = getScore();result = result * 59 + ($score == null ? 43 : $score.hashCode());Object $ip = getIp();result = result * 59 + ($ip == null ? 43 : $ip.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeAddonsStarDetail;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeAddonsStarDetail)) {
            return false;
        }
        VeAddonsStarDetail other = (VeAddonsStarDetail)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$starid = getStarid();Object other$starid = other.getStarid();
        if (this$starid == null ? other$starid != null : !this$starid.equals(other$starid)) {
            return false;
        }
        Object this$userid = getUserid();Object other$userid = other.getUserid();
        if (this$userid == null ? other$userid != null : !this$userid.equals(other$userid)) {
            return false;
        }
        Object this$addtime = getAddtime();Object other$addtime = other.getAddtime();
        if (this$addtime == null ? other$addtime != null : !this$addtime.equals(other$addtime)) {
            return false;
        }
        Object this$ishide = getIshide();Object other$ishide = other.getIshide();
        if (this$ishide == null ? other$ishide != null : !this$ishide.equals(other$ishide)) {
            return false;
        }
        Object this$status = getStatus();Object other$status = other.getStatus();
        if (this$status == null ? other$status != null : !this$status.equals(other$status)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$nickname = getNickname();Object other$nickname = other.getNickname();
        if (this$nickname == null ? other$nickname != null : !this$nickname.equals(other$nickname)) {
            return false;
        }
        Object this$content = getContent();Object other$content = other.getContent();
        if (this$content == null ? other$content != null : !this$content.equals(other$content)) {
            return false;
        }
        Object this$score = getScore();Object other$score = other.getScore();
        if (this$score == null ? other$score != null : !this$score.equals(other$score)) {
            return false;
        }
        Object this$ip = getIp();Object other$ip = other.getIp();return this$ip == null ? other$ip == null : this$ip.equals(other$ip);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getStarid()
    {
        return this.starid;
    }

    public Integer getUserid()
    {
        return this.userid;
    }

    public String getNickname()
    {
        return this.nickname;
    }

    public String getContent()
    {
        return this.content;
    }

    public Integer getAddtime()
    {
        return this.addtime;
    }

    public BigDecimal getScore()
    {
        return this.score;
    }

    public String getIp()
    {
        return this.ip;
    }

    public Integer getIshide()
    {
        return this.ishide;
    }

    public Integer getStatus()
    {
        return this.status;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
